﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SmsStatistics.aspx.cs" Inherits="Business_Cisoft3G_SmsStatistics" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>短信统计</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/font.css" rel="stylesheet" type="text/css" />
    <asp:Literal ID="ltScript" runat="server"></asp:Literal>
</head>
<body>
    <form id="form1" runat="server">
    <div class="position_list">
        <div class="position_left_list">
        </div>
        <div class="position_con_list">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="30">
                        <img src="../../../Images/3G/icon21.gif" width="14" height="14" alt="" />
                    </td>
                    <td class="cyan12">
                        短信数据统计
                    </td>
                </tr>
            </table>
        </div>
        <div class="position_right_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域开始<![endif]-->
    <div class="search_list">
        <div class="search_top_list">
            <div class="search_topleft_list">
            </div>
            <!--  查询     -->
            <div class="search_topbg_list">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="30" align="left" valign="middle" style="padding-top: 4px;">
                            <img src="../../../Images/3G/icon_logo.gif" width="22" height="22" />
                        </td>
                        <td width="100" class="cyan13_bold" style="padding-top: 5px;">
                            系统温馨提示栏
                        </td>
                        <td style="padding-top: 5px;">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="search_topright_list">
            </div>
        </div>
        <!--   列表     -->
        <div class="index_search_con_list">
            <table border="0" cellpadding="0" cellspacing="0" style="padding-left: 10px">
                <tr>
                    <td>
                        <span style="color: #ffffff;">短信统计：</span>
                        <asp:DropDownList ID="ddlSearchType" runat="server">
                            <asp:ListItem Text="全部" Value="0" />
                            <asp:ListItem Text="接收短信" Value="CG_Inbox" />
                            <asp:ListItem Text="发送短信" Value="CG_Sent" />
                            <asp:ListItem Text="待发短信" Value="CG_Outbox" />
                            <asp:ListItem Text="草稿短信" Value="CG_Drafts" />
                        </asp:DropDownList>
                        <span style="color: #ffffff;">短信类型：</span>
                        <asp:DropDownList ID="ddlSmsType" runat="server">
                            <asp:ListItem Text="全部" Value="0" />
                        </asp:DropDownList>
                        <span style="color: #ffffff;">时间从：</span>
                        <asp:TextBox ID="txtStartTime" runat="server" Style="height: 14px; width: 70px; border: 1px solid #ffffff;"
                            onfocus="var d5222=$dp.$('txtEndTime');WdatePicker({onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'txtEndTime\')}'})"></asp:TextBox>
                        <img src="../../Images/Calendar_scheduleHS.png" alt="点击选择开始日期" id="imgStartDate"
                            runat="server" />
                        <span style="color: #ffffff;">至</span>
                        <asp:TextBox ID="txtEndTime" runat="server" Style="height: 14px; width: 70px; border: 1px solid #ffffff;"
                            onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartTime\')}'})"></asp:TextBox>
                        <img src="../../Images/Calendar_scheduleHS.png" alt="点击选择结束日期" id="imgEndDate" runat="server" />
                        <asp:Button ID="btnSearch" runat="server" ToolTip="查询" OnClick="btnSearch_Click" />
                        <asp:Button ID="btnChart" runat="server" ToolTip="查看图表" OnClick="btnDelete_Click" />
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请选择或输入开始时间！"
                            ControlToValidate="txtStartTime" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择或输入结束时间！"
                            ControlToValidate="txtEndTime" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="开始日期格式错误!正确的日期格式为 YYYY-MM-DD"
                            Display="Dynamic" ControlToValidate="txtStartTime" ValidationExpression="^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$">
                        </asp:RegularExpressionValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="结束日期格式错误!正确的日期格式为 YYYY-MM-DD"
                            Display="Dynamic" ControlToValidate="txtEndTime" ValidationExpression="^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[1-9])|(1[0-2]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])\s))([AM|PM|am|pm]{2,2})))?$">
                        </asp:RegularExpressionValidator>
                        <br />
                        <asp:Button ID="btnToday" runat="server" ToolTip="今天" OnClick="Button1_Click" CausesValidation="false" />&nbsp;
                        <asp:Button ID="btnLastDay" runat="server" ToolTip="昨天" CausesValidation="false"
                            OnClick="Button2_Click" />
                        <asp:Button ID="btnThisWeek" runat="server" ToolTip="本周" CausesValidation="false"
                            OnClick="Button3_Click" />
                        <asp:Button ID="btnLastWeek" runat="server" ToolTip="上周" CausesValidation="false"
                            OnClick="Button4_Click" />
                        <asp:Button ID="btnThisMonth" runat="server" ToolTip="本月" CausesValidation="false"
                            OnClick="Button5_Click" />
                        <asp:Button ID="btnLastMonth" runat="server" ToolTip="上月" CausesValidation="false"
                            OnClick="Button6_Click" />
                        <asp:Button ID="btnThisYear" runat="server" ToolTip="今年" CausesValidation="false"
                            OnClick="Button7_Click" />
                        <asp:Button ID="btnLastYear" runat="server" ToolTip="去年" CausesValidation="false"
                            OnClick="Button8_Click" />
                        <asp:Button ID="btnAll" runat="server" ToolTip="全部" CausesValidation="false" OnClick="Button9_Click" />
                        <asp:Button ID="btnExcel" runat="server" ToolTip="导出Excel" OnClick="btnExcel_Click" />
                        
                        <br />
                        <br />
                    </td>
                </tr>
            </table>
            <center>
                <asp:Label ID="lblTitle" runat="server" Text="" CssClass="cyan12" Style="font-size: 14pt;
                    font-weight: bold;"></asp:Label></center>
            <br />
            <table border="0" cellspacing="1" bgcolor="73798f" id="tableList" style="width:100%">
                <tr class="cyan12" bgcolor="#1E3541" style="font-size: 14px; font-weight: bold; height: 25px;"
                    runat="server" id="trTitleRow" visible="false">
                    <td align="center" valign="middle" width="200" runat="server" id="th1" visible="false">
                        短信接收条数
                    </td>
                    <td align="center" valign="middle" width="200" runat="server" id="th2" visible="false">
                        短信发送条数
                    </td>
                    <td align="center" valign="middle" width="200" runat="server" id="th3" visible="false">
                        待发短信条数
                    </td>
                    <td align="center" valign="middle" width="200" runat="server" id="th4" visible="false">
                        草稿箱草稿数量
                    </td>
                </tr>
                <tr class="cyan12" bgcolor="#1E3541" style="font-size: 14px; font-weight: bold; height: 25px;"
                    id="trDataRow" runat="server" visible="false">
                    <td align="center" valign="middle" width="200" runat="server" id="td1" visible="false">
                        <asp:Label ID="lblInbox" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="200" runat="server" id="td2" visible="false">
                        <asp:Label ID="lblSent" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="200" runat="server" id="td3" visible="false">
                        <asp:Label ID="lblOutbox" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="200" runat="server" id="td4" visible="false">
                        <asp:Label ID="lblDraft" runat="server" Text="0"></asp:Label>
                    </td>
                </tr>
            </table>
            <table border="0" cellspacing="1" cellpadding="0" bgcolor="73798f" id="table1" runat="server" style="width:100%">
                <tr class="cyan12" bgcolor="#1E3541" style="font-size: 14px; font-weight: bold; height: 25px;"
                    runat="server" id="tr1" visible="false">
                    <td align="center" valign="middle" width="100" runat="server" id="th5" visible="false">
                        <span id="span1" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th6" visible="false">
                        <span id="span2" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th7" visible="false">
                        <span id="span3" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th8" visible="false">
                        <span id="span4" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th9" visible="false">
                        <span id="span5" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th10" visible="false">
                        <span id="span6" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th11" visible="false">
                        <span id="span7" runat="server"></span>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="th12" visible="false">
                        <span id="span8" runat="server"></span>
                    </td>
                </tr>
                <tr class="cyan12" bgcolor="#1E3541" style="font-size: 14px; font-weight: bold; height: 25px;"
                    id="tr2" runat="server" visible="false">
                    <td align="center" valign="middle" width="100" runat="server" id="td5" visible="false">
                        <asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td6" visible="false">
                        <asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td7" visible="false">
                        <asp:Label ID="Label3" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td8" visible="false">
                        <asp:Label ID="Label4" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td9" visible="false">
                        <asp:Label ID="Label5" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td10" visible="false">
                        <asp:Label ID="Label6" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td11" visible="false">
                        <asp:Label ID="Label7" runat="server" Text="0"></asp:Label>
                    </td>
                    <td align="center" valign="middle" width="100" runat="server" id="td12" visible="false">
                        <asp:Label ID="Label8" runat="server" Text="0"></asp:Label>
                    </td>
                    <%--<td align="center" valign="middle" width="89" runat="server" id="td13" visible="false">
                        <asp:Label ID="Label9" runat="server" Text="0"></asp:Label>
                    </td>--%>
                </tr>
            </table>
        </div>
    </div>
    <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="true">
    </asp:GridView>
    <div class="search_bottom_list">
        <div class="search_bottomleft_list">
        </div>
        <div class="search_bottombg_list">
        </div>
        <div class="search_bottomright_list">
        </div>
    </div>
    <!--[if !IE]>搜素区域结束<![endif]-->
    </form>
</body>
</html>
